<header>
    <hgroup>
        <h1>{$data.nom} {$data.prenom}</h1>
    </hgroup>
</header>

<div id="infos_chasseur">
    <ul>
        <li><strong>Date d'enrôlement</strong><span>{ $data.date_create|date_format:"%d/%m/%y" }</span></li>
        <li><strong>Nombre de relevés</strong><span>{$data.noteNB}</span></li>
    </ul>
    <ul>
        <li>
            <strong>Titre</strong>
            <span>
                { if $data.noteNB < 4 }
                Caporal
                { elseif $data.noteNB < 10 }
                Sergent
                { else }
                Adjudant
                { /if }
            </span>
        </li>
        <li><strong>Note</strong><span>{ if $data.note != "" }{ $data.note }{ else }-{ /if }/20</span></li>
    </ul>
</div>

{if $data.lat == '0'}
Aucune données GPS disponible pour localisation
{else}
    <div id="maps" class="singleMap">
    </div>
   {strip}
    <script>
            {literal}
            var GoogleMap = {
                zoom: 12,
                id: 'maps',
                markers :
                [
                    { latitude: {/literal}{$data.lat}{literal},
                      longitude: {/literal}{$data.lng}{literal},
                      html: "Chasseur {/literal}{$data.prenom}{literal}",
                    }
                ]
            }
            {/literal}
    </script>
    {/strip}

{/if}